package com.hlkj.pay.util;
/*
 * Hlpay-Plus aggregate payment system.
 * Copyright (c) 2024-2025 Hlpay Team Copyright has the right of final interpretation.
 */

import com.hlkj.pay.common.constants.AdminUserConstant;

import cn.hutool.core.util.RandomUtil;
/**
 * @author HlpayTeam
 * @date 2024/10/11 14:14
 */
public class UserUtil {
	
	/**
	 * 密码明文
	 * @return
	 */
	public static String password() {
		String baseChar = RandomUtil.randomString(RandomUtil.BASE_CHAR_NUMBER, 4);
		String baseCharCase = RandomUtil.randomString(RandomUtil.BASE_CHAR.toUpperCase(), 1);
		String s1 = RandomUtil.randomString(AdminUserConstant.PWD_END_CHAR, 1);
		return baseChar + baseCharCase + s1;
	}
	/**
	 * 密码明文
	 * @return
	 */
	public static String inviteCode() {
		return RandomUtil.randomString(RandomUtil.BASE_CHAR_NUMBER.toUpperCase(), 6);
	}
	public static void main(String[] args) {
		System.out.println(inviteCode());
	}
}
